//
//  WBFindViewController.m
//  OC版新浪微博
//
//  Created by chenguanglei on 16/11/27.
//  Copyright © 2016年 itheima. All rights reserved.
//

#import "WBFindViewController.h"
#import "WBSearchButton.h"

@interface WBFindViewController ()

@end

@implementation WBFindViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    [super iconImage:@"visitordiscover_image_message" message:@"登录，别人评论你的微博，发给你的消息，都会在这里收到通知" isAnimation:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)setupUI{
    
    
    WBSearchButton *btn = [[WBSearchButton alloc]init];

    btn.frame = CGRectMake(0, 0, kUIScreenWidth, 32);
    
    btn.layer.cornerRadius = 10;
    
    btn.clipsToBounds = YES;
    
    btn.layer.borderWidth = 1;
    
    btn.layer.backgroundColor = [UIColor lightGrayColor].CGColor;
    
    btn.imageEdgeInsets = UIEdgeInsetsMake(0, -270, 0, 0);
    
    [btn setTitle:@"点击搜索" forState:UIControlStateNormal];
    
    btn.titleLabel.font = [UIFont systemFontOfSize:14];
    
    btn.titleEdgeInsets = UIEdgeInsetsMake(0, -250, 0, 0);
    
    
    [btn setImage:[UIImage imageNamed:@"searchbar_textfield_search_icon"] forState:UIControlStateNormal];
    
    [btn setBackgroundImage:[UIImage imageNamed:@"searchbar_textfield_background"] forState:UIControlStateNormal];
    
    self.navigationItem.titleView = btn;
    
}


@end
